<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
	<%@include file="/WEB-INF/common/taglibs.jsp"%>    
    <title>江苏龙芯梦兰科技股份有限公司-SMT生产管理系统</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<link rel="stylesheet" type="text/css" href="${ctx}resources/css/common.css" />
  </head>
  <script type="text/javascript">
  		function submitForm(){
  			$("#anthorizePermission").submit();
  		}
  </script>
 <body>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="24" bgcolor="#353c44"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="6%" height="19" valign="bottom"><div align="center"><img src="${ctx}resources/images/tb.gif" width="14" height="14" /></div></td>
                <td width="94%" valign="bottom"><span class="STYLE1">${model==null? "添加":"修改 "}${model==null?"":model.roleCname} 授权</span></td>
              </tr>
            </table></td>
            <td></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td>
    <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#d3eaef">
      <tr>
        <td width="100%" height="auto" bgcolor="#d3eaef">
        	<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#d3eaef">
              <tr>
                <td width="100%" height="20" align="left" style="text-indent:20px;font-size: 12px">带*号为必填选项</td>
              </tr>
   			</table>
        </td>
      </tr>
      <form action="${ctx}role/anthorizePermission.htm" method="post" id="anthorizePermission">
      <input type="hidden" name="id" value="${model.id}">
      <tr>
        <td width="100%" height="20">
           <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#f4fafb">
             <tr height="25">
               <td width="42%" align="right">模块: </td>
               <td width="35%" ></td>
               <td width="23%" class="slyle_text"></td>
             </tr>
            </table>
       		<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#f4fafb">
               <tr height="25">
                <td width="42%" align="right"></td>
                <td width="35%" style="line-height:20px">
                	<span><s:checkboxlist name="checkedModelIds" list="allModelList" listKey="id" listValue="name" theme="custom"/></span>
                </td>
                <td width="23%" class="slyle_text"></td>
              </tr>
   			</table>
	   	  </td>
        </tr>
        <tr>
        	<td>
	            <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#f4fafb">
	              <tr height="25" >
	                <td width="42%" align="right">权限: </td>
	                <td width="35%"></td>
	                <td width="23%" class="slyle_text"></td>
	              </tr>
	               <tr height="25">
	                <td width="42%" align="right"></td>
	                <td width="35%" style="line-height:20px">
	                	<span>
	                	   <s:checkboxlist name="checkedPermissionIds" list="allPermissionList" listKey="id" listValue="name" theme="custom"/>
	                	</span>
	                </td>
	                <td width="23%" class="slyle_text"></td>
	              </tr>
	   			</table>
	   		</td>
        </tr>
   			</form>
   		<tr>
        	<td>
            <table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#f4fafb">
              <tr height="50">
                <td width="50%" align="right"><input type="image" onclick="submitForm()" src="${ctx}resources/images/dl_1.gif" /></td>
                <td width="50%" style="text-indent:5px"><a href="${ctx}role/list.htm" style="border: 0px"><img src="${ctx}resources/images/dl_2.gif" /></a></td>
              </tr>
   			</table>
        </td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
  </tr>
</table>
</body>
</html>
